package org.boyan.modules.cgform.model;

/**
 * @author: zhuxiaobao
 * @time: 2021/9/26 12:21
 */

public class HrefSlots {
    private String slotName;

    private String href;

    public void setSlotName(String slotName) {
        this.slotName = slotName;
    }

    public void setHref(String href) {
        this.href = href;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof HrefSlots))
            return false;
        HrefSlots hrefSlots = (HrefSlots)o;
        if (!hrefSlots.canEqual(this))
            return false;
        String str1 = getSlotName(), str2 = hrefSlots.getSlotName();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2))
            return false;
        String str3 = getHref(), str4 = hrefSlots.getHref();
        return !((str3 == null) ? (str4 != null) : !str3.equals(str4));
    }

    protected boolean canEqual(Object other) {
        return other instanceof HrefSlots;
    }

    @Override
    public int hashCode() {
        boolean var1 = true;
        byte var2 = 1;
        String var3 = this.getSlotName();
        int var5 = var2 * 59 + (var3 == null ? 43 : var3.hashCode());
        String var4 = this.getHref();
        var5 = var5 * 59 + (var4 == null ? 43 : var4.hashCode());
        return var5;
    }

    @Override
    public String toString() {
        return "HrefSlots(slotName=" + getSlotName() + ", href=" + getHref() + ")";
    }

    public String getSlotName() {
        return this.slotName;
    }

    public String getHref() {
        return this.href;
    }

    public HrefSlots() {}

    public HrefSlots(String slotName, String href) {
        this.slotName = slotName;
        this.href = href;
    }
}
